<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*a = 100;
			function demo(e){
				function e(){}
				arguments[0] = 2;
				document.write(e);//2
				if(a){
					var b = 123;
					function c(){}
				}
				var c;
				a = 10;
				var a;
				document.write(b);//undefined
				f = 123;
				document.write(c);//undefined
				document.write(a);//10
			}
			var a;
			demo(1);
			document.write(a);//100
			document.write(f);//123*/
			
			/*var str = false + 1;
			document.write(str);//1
			var demo = false == 1;
			document.write(demo);//false
			if(typeof(a) && -true + (+undefined) + ""){
				document.write("基础扎实");//
			}
			if(11 + "11" * 2 == 33){
				document.write("基础扎实");
			}
			
			!!" " + !!"" - !!false || document.write("你觉得");*/
			
			var b = (window.foo) || (window.foo = 'bar')
			console.log(b);//bar
		</script>
	</body>
</html>
